home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / graphic / pbmpl91d.zip / PBMPLUS / MAN / PPMTOICR.MAN < prev    next >
Text File  |  1993-01-08  |  4KB  |  147 lines

  1.  
  2.  
  3. ppmtoicr(1)                Unix Programmer's Manual                ppmtoicr(1)
  4.  
  5.  
  6. NAME
  7.      ppmtoicr - convert a portable pixmap into NCSA ICR format
  8.  
  9. SYNOPSIS
  10.      ppmtoicr [-windowname name] [-expand expand]  [-display  display]  [-rle]
  11.                            ----           ------              -------
  12.      [ppmfile]
  13.       -------
  14.  
  15. DESCRIPTION
  16.      Reads  a  portable  pixmap  file  as  input.   Produces  an  NCSA  Telnet
  17.      Interactive  Color  Raster  graphic  file  as  output.  If ppmfile is not
  18.                                                                 -------
  19.      supplied, ppmtoicr will read from standard input.
  20.                --------
  21.  
  22.      Interactive Color Raster  (ICR)  is  a  protocol  for  displaying  raster
  23.      graphics  on  workstation  screens.  The  protocol is implemented in NCSA
  24.      Telnet  for  the  Macintosh  version  2.3.   The  ICR   protocol   shares
  25.      characteristics  of  the  Tektronix graphics terminal emulation protocol.
  26.      For example, escape sequences are used to control the display.
  27.  
  28.      ppmtoicr will output the appropriate sequences to create a window of  the
  29.      --------
  30.      dimensions  of the input pixmap, create a colormap of up to 256 colors on
  31.      the display, then load the picture data into the window.
  32.  
  33.      Note that there is no icrtoppm tool - this transformation is one way.
  34.  
  35. OPTIONS
  36.  
  37.      -windownamename
  38.                 ----
  39.                    Output will be displayed in name (Default is to use ppmfile
  40.                                                ----                    -------
  41.                    or "untitled" if standard input is read.)
  42.  
  43.      -expandexpand Output will be expanded on display by  factor  expand  (For
  44.             ------                                                ------
  45.                    example,  a  value  of  2  will  cause  four  pixels  to be
  46.                    displayed for every input pixel.)
  47.  
  48.      -displaydisplay
  49.              -------
  50.                    Output will be displayed on screen numbered display
  51.                                                                -------
  52.  
  53.      -rle          Use run-length  encoded  format  for  display.  (This  will
  54.                    nearly always result in a quicker display, but may skew the
  55.                    colormap.)
  56.  
  57. EXAMPLES
  58.      To display a ppm file using the protocol:
  59.                   ---
  60.          ppmtoicr ppmfile
  61.      This will create a window named ppmfile on the display with  the  correct
  62.                                      -------
  63.      dimensions  for  ppmfile,  create  and  download  a colormap of up to 256
  64.                       -------
  65.      colors, and download the picture into the window. The same effect may  be
  66.      achieved by the following sequence:
  67.          ppmtoicr ppmfile > filename
  68.          cat filename
  69.      To display a GIF file using the protocol in a  window  titled  after  the
  70.      input  file,  zoom  the  displayed image by a factor of 2, and run-length
  71.      encode the data:
  72.          giftoppm giffile | ppmtoicr -w giffile -r -e 2
  73.  
  74.  
  75.  
  76.  
  77.                                 30 July 1990                                 1
  78.  
  79.  
  80.  
  81. ppmtoicr(1)                Unix Programmer's Manual                ppmtoicr(1)
  82.  
  83.  
  84. BUGS
  85.  
  86.      The protocol uses frequent fflush calls  to  speed  up  display.  If  the
  87.                                 ------
  88.      output is saved to a file for later display via cat, drawing will be much
  89.                                                      ---
  90.      slower. In either case, increasing the Blocksize  limit  on  the  display
  91.      will speed up transmission substantially.
  92.  
  93. SEE ALSO
  94.      ppm(5)
  95.  
  96.      NCSA Telnet for the Macintosh, University of Illinois at Urbana-Champaign
  97.      ---- ------ --- --- ---------
  98.      (1989)
  99.  
  100. AUTHOR
  101.      Copyright (C) 1990 by Kanthan Pillay (svpillay@Princeton.EDU),  Princeton
  102.      University Computing and Information Technology.
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.  
  141.  
  142.  
  143.  
  144.  
  145.                                 30 July 1990                                 2
  146.  
  147.